<template>
  <div class="title-panel relative flex items-center">
    <div class="title-text"> <slot name="title"></slot> </div>
    <div class="title-content">
       <slot name="content"></slot>
    </div>
    <div class="title-right absolute right-0 z-10">
       <slot name="right"></slot>
    </div>
    <div class="border-bottom" v-if="isBorder">
       
    </div>
  </div>
</template>
<script lang="ts" setup>
defineProps({
  isBorder:{
    type: Boolean,
    defafult: false
  }
})
defineOptions({ name: 'RepTitle' })
</script>
<style lang="scss" scoped>
  @font-face {
    font-family: YouSheBiaoTiHei;
    src: url("../../font/ysbth.ttf");
  }

 .border-bottom{
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #E7EEF0;
 }

 .border-bottom::before{
   position: absolute;
   top: 0;
   left: 0;
   width: 50px;
   height: 1px;
   background: #70ABFC;
   content: '';
 }

 .border-bottom::after{
   position: absolute;
   top: 0;
   left: 60px;
   width: 15px;
   height: 1px;
   background: #F0AD32;
   content: '';
 }

.title-panel {
  .title-text {
    padding-left: 20px;
    font-family: YouSheBiaoTiHei;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: #333;
  }
  
  .title-text::before{
     position: absolute;
     top: 0;
     bottom: 0;
     left: 0;
     width: 5px;
     background: #2960AA;
     border-radius: 2px;
     content: '';

  }

  .title-content{
     margin-left: 64px;
  }
}

 
</style>
